import request from "@/utils/request";

/**
 * 获取招标列表
 */
export function listSysZbApi(params?: any) {
  return request({
    url: "/sys/sysZb/list",
    method: "get",
    params,
  });
}

/**
 * 获取招标详情
 */
export function detailSysZbApi(id: any) {
  return request({
    url: "/sys/sysZb/" + id,
    method: "get",
  });
}

/**
 * 添加招标
 */
export function addSysZbApi(data: any) {
  return request({
    url: "/sys/sysZb/add",
    method: "post",
    data,
  });
}

/**
 * 修改招标
 */
export function updateSysZbApi(data: any) {
  return request({
    url: `/sys/sysZb/update`,
    method: "put",
    data,
  });
}

/**
 * 删除招标
 */
export function deleteSysZbApi(ids: number[] | number) {
  return request({
    url: `/sys/sysZb/delete/` + ids,
    method: "delete",
  });
}

/**
 * 激活
 */
export function updateJh(ids: any) {
  return request({
    url: `/sys/sysZb/updateJh`,
    method: "put",
    data: ids,
  });
}

/**
 * 激活
 */
export function updateQxJh(ids: any) {
  return request({
    url: `/sys/sysZb/updateQxJh`,
    method: "put",
    data: ids,
  });
}
